#ifndef _STDTCP_H_
#define _STDTCP_H_

#include<stddef.h>
struct TcpServer;
typedef struct TcpServer Tcps;

Tcps* InitTcpServer(const char*ip,short int port);
int TcpServerAccrpt(Tcps*s);
void TcpServerSend(int ClientSock,void *ptr,size_t size);
void TcpServerRecv(int ClientSock,void *ptr,size_t size);
void ClearTcpServer(Tcps*s);

struct TcpClient;
typedef struct TcpClient Tcpc;

Tcpc*InitTcpClient(const char *ServerIp,short int ServerPort);
void TcpClientSend(Tcpc*c,void *ptr,size_t size);
void TcpClientRecv(Tcpc*c,void *ptr,size_t size);
void ClearTcpClient(Tcpc*c);


#endif